package com.chen.back.mapper;

import com.chen.back.entity.ChooseCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2022-02-24
 */
public interface ChooseCourseMapper extends BaseMapper<ChooseCourse> {
    //选择添加课程
    int insertChooseCourse(int userId, int courseId);

    //在选课结果中进行退课
    int deleteChooseCourse(int userId, int courseId);
//通过用户id与科目id进行有目的的选择科目
    ChooseCourse selectChooseCourseByCourseIdUserId(int userId, int courseId);


}
